{%include file="header.tpl"%}
<script>



function ver_from(){
	//先验证身份通号码
	var obj = $("#sft").val();
	var re = /^-?[1-9]+(\.\d+)?$|^-?0(\.\d+)?$|^-?[1-9]+[0-9]*(\.\d+)?$/;
     if (!re.test(obj))
    {
        alert("请输入合法的身份通号码");
  		$("#sft").val('');
        return false;
     }
     
     //验证密码
     if($("#sftpass").val()==''){
     	alert('请输入密码');
     	return false;
     }
     //验证验证码
     var flag = true;
     $.ajax({
		type: "POST",
		async:false,
 		url: "{%$host_name%}/ajax_vcode.php",
 		data:   {ver_code:$("#code").val()},
 		dataType:'html',
 		success: function(data){
 			//验证成功
 			if(data!=''){
 				alert(data);
 				flag = false;
 			}
 		},
 		error: function(){
 			alert('系统错误');
 			flag = false;
 		}
	});
	
/*	if($("#check_agree").attr("checked")==false){
		alert('同意服务条款才能继续');
		return false;
	}*/
	return flag;

	
}

/*$(document).ready(function(){
	$("#username_tab").click(function(){
		$("#username_tab_y").toggle(200);
	});
	$("#username_tab_y a").click(function(){
		//var aUser = $("#username_tab_y a");
		//var aInput = ["idtagNo","idcode","email"];
		$("#username_tab span a").html($(this).html());
		$("#username_n").html('<em>*</em>'+$(this).html());

	});
})*/
</script>
<div class="nav_down"></div>
        
        <div class="main_left">
        	<div class="main_ad"><img src="{%$pic_path%}ad.jpg" /></div>
        	<div class="frameNav">
            	<h1>01</h1>
                <span class="new"><a href="index.php">无R码用户</a></span>
                <span class="old"><a class="cur">有R码用户</a></span>
                <em>选择您的认证方式</em>
            </div>
            <div class="frame_c">
            	<form name="form1" method="post" action="{%$host_name%}/fifth_step.php">
            	<dl>
                	<dt>R码用户登录</dt>
                    <dd>
                    	<div class="fname" id="username_n"><em>*</em>R码</div>
                        <div class="finput">
                        	<input type="text" name="sft" id="sft" class="tanch_input" />
                            <em>请输入您的R码</em>
                            <div class="forget"><a href="###" target="_blank">忘记R码？</a></div>
                        </div>
                    </dd>
                    <dd>
                    	<div class="fname"><em>*</em>密码</div>
                        <div class="finput">
                        	<input type="password" id="sftpass" name="sftpass"  class="tanch_input"/>
                            <em>请输入密码</em>
                            <div class="forget"><a href="###" target="_blank">忘记密码？</a></div>
                        </div>
                    </dd>
                    <dd>
                    	<div class="fname"><em>*</em>验证码</div>
                        <div class="finput">
                        	<input type="text" name="ver_code" id="code" class="tanch_input"/>
                            <p id="icode"><img src="{%$host_name%}/yz.php" title="" onclick="this.src='{%$host_name%}/yz.php?a='+Math.random();"/></p>
                            <span id="acode"><!--<a href="###">换一张</a>--></span>
                        </div>
                    </dd>
                    <dd class="fbtn">
                    	<input class="next" type="submit" value=""/>
                    </dd>
                </dl>
                </form>
            </div>
            <div class="clear"></div>
            
        </div>
        {%include file="right.tpl"%}
    </div>
{%include file="footer.tpl"%}